package com.community.owner.domain.enums;

public enum SmartCode {
    SAVE_SUCCESS(200,"保存成功"),

    SAVE_ERROR(500,"保存失败"),


    DELETE_SUCCESS(200,"删除成功"),

    DELETE_BUILDING_ERROR(500,"此楼宇有房子与之绑定，不能删除"),

    DELEVE_HOUSE_ERROR(500,"此房屋有业主与之绑定，不能删除"),

    DOLOGIN_SUCCESS(200,"登录成功"),

    DOLOGIN_ERROR(500,"登录失败"),

    DOLOGIN_USER_ERROR(500,"用户名或者密码错误"),

    DOLOGIN_USER_ERROR2(500,"您的用户已被冻结,请联系管理员!!!!"),

    LOGOUT_SUCCESS(200,"注销成功"),

    SAVE_ROLE_SUCCESS(200,"保存角色成功"),

    SAVE_ROLE_ERROR(500,"保存角色失败"),

    DELETE_USER_SUCCESS(200,"删除用户成功"),

    DELETE_USER_ERROR(500,"此用户有管理员身份，不能删除"),

    DELETE_USER_ERROR3(500,"删除用户失败"),

    DELETE_ROLE_SUCCESS(200,"删除角色成功"),

    DELETE_ROLE_ERROR(500,"此角色有管理员身份，不能删除"),

    SAVE_PERMISSION_SUCCESS(200,"保存成功"),

    SAVE_PERMISSION_ERROR(500,"保存失败"),

    NO_PERMISSION(500,"您没有此权限!!!!"),

    DELETE_PERMISSION_ERROR(500,"此权限有角色与之绑定，不能删除"),


    SAVE_DOWNLOAD_SUCCESS(200,"下载成功"),
    SAVE_DOWNLOAD_ERROR(500,"下载失败"),
    Vehicle_Record_Fail(500,"查询车辆记录失败"),
    Personnel_Record_Fail(500,"查询人员记录失败"),
    Vehicle_Record_Success(200,"查询成功"),





            ;

    private Integer code;
    private String msg;


    SmartCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }



}
